package com.lhc.springboot_mybatispuls.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Column;

/**
 * dome_user
 * @author 
 */
@Data
@TableName("dome_user")
public class DomeUser implements Serializable {
    /**
     * 主键ID
     * 如果不加TableID，会导致mybatis报错：
     * Could not set property 'id' of 'class com.lhc.springboot_mybatispuls.entity.
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @Column("name")
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    private static final long serialVersionUID = 1L;
}